#include <stdarg.h>
#include <Windows.h>

#include "VMPFocus.hpp"
#include "operations.hpp"

sRecord SystemFunctionEva(ptrRETNode retnode, ptrParsedElement pe, void* scope){
	ptrDough arguments=(retnode->Locals.search("Arguments")->dough);
	ptrdArray darray=(ptrdArray)(arguments->Extended->search(EXT_ARRAY));
	sRecord tmp=(*darray)[1];
	ptrDough textDough=tmp.dough;
	ptrText text=(ptrText)(textDough->Extended->search(EXT_TYPEV));
	MessageBox(0,text->c_str(),"Hello world",0);
	//cout<<text->c_str();
	return sRecord();

};

ptrOperation loadSys(){
	ptrOperation tmp=new cOperation();
	tmp->onEvaluate=SystemFunctionEva;
	tmp->Name="System";
	return tmp;
}